<?php

abstract class AppModel extends Model {
	
	public function findAllByCondominio($condominio_id, $camp=null) {
		return ($camp != null) ? 
			$this->findAndOrderBy( array( "condominio_id" => $condominio_id ), $camp ) :
			$this->find( array( "condominio_id" => $condominio_id ) ) ;
	}
	
}

?>